package cn.cboard.forum;

import java.io.IOException;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;

public class HelloWorldServlet extends HttpServlet{
	private final static Logger logger = Logger.getLogger(HelloWorldServlet.class);
	private static final long serialVersionUID = 6640310151981789590L;
	
	public void doGet(HttpServletRequest request, HttpServletResponse response){
		logger.info("[boardMx]---->HelloWorldServlet doGet(): run...");
		try {
			response.getWriter().print("<h3>HI, BoardMx</h3><br/>Hello World Servlet!");
		} catch (IOException e) {
			e.printStackTrace();
		}
		//response.encodeUrl(arg0);
		//response.encodeURL(url);
	}
	public void doPost(HttpServletRequest request, HttpServletResponse response){
		doGet(request,response);
	}
}
